<?php
return array(
	'class' => 'EditAction',
	'formView' => array(
		'fields' => array(
			'baseInfo' => array(
				'_with' => array(
					'profile.nickname',
					'info.category_id' => array(
						'dropDownList',
						Yii::app()->enum->options('goods.category'),
						'visible' => '$model->status != "ST_PASSED"',
					),
					'info.category.category_name' => array(
						'class' => 'StringField',
						'visible' => '$model->status == "ST_PASSED"',
					),
				),
			),
			'info' => array(
				'id' => false,
				'worker_id' => false,
				'category_id' => false,
				'address' => array('TextField', array('size'=>70)),
				'business_license' => array('class'=>'FileField'),
				'desc' => array('textArea',array('style'=>'width:500px;height:200px;')),
			),
		)
	),
	'cascade' => array(
		'info',
	),
	'_import' => array(
		array('*', 'actions.worker.edit//*'),
		array('formView.fields.baseInfo.*', 'actions.worker.edit//formView.fields.baseInfo.*'),
		array('formView.fields.*', 'actions.worker.edit//formView.fields.*'),
	),
);